<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>校园活动列表页</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', sans-serif;
        }

        body {
            background-image: url("C:/Users/AA/Desktop/欢迎您.png");
            background-color: #f5f5f5; /* 背景图加载失败备用色 */
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            background-attachment: fixed;
            color: #333;
            line-height: 1.6;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* 头部样式 */
        header {
            background: linear-gradient(135deg, #1a5fb4 0%, #1c71d8 100%);
            color: white;
            padding: 15px 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: relative;
            z-index: 10;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
        }

        .logo img {
            height: 50px; /* 保持原有logo高度，确保布局协调 */
            width: auto; /* 自动适配宽度，避免拉伸变形 */
            margin-right: 15px;
            border-radius: 3px; /* 轻微圆角，提升视觉效果 */
        }

        .logo h1 {
            font-size: 24px;
            font-weight: bold;
        }

        nav ul {
            display: flex;
            list-style: none;
            align-items: center;
        }

        nav ul li {
            margin-left: 20px;
            position: relative;
        }

        nav ul li a {
            color: white;
            text-decoration: none;
            padding: 10px 15px;
            border-radius: 5px;
            transition: background-color 0.3s;
        }

        nav ul li a:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        /* 活动时间筛选按钮 */
        .time-filter {
            background-color: #e6f0ff;
            color: #1a5fb4;
            border: none;
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s;
            margin-left: 20px;
        }

        .time-filter:hover {
            background-color: white;
            color: #1a5fb4;
        }

        /* 内容区样式 */
        .main-content {
            padding: 30px 0;
            min-height: 60vh;
            position: relative;
            z-index: 5;
        }

        /* 活动类型标签 */
        .activity-type-tabs {
            display: flex;
            justify-content: flex-start;
            margin-bottom: 30px;
            gap: 15px;
        }

        .activity-type-tab {
            padding: 8px 16px;
            background-color: #e6f0ff;
            color: #1a5fb4;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .activity-type-tab.active,
        .activity-type-tab:hover {
            background-color: #1a5fb4;
            color: white;
        }

        /* 活动列表项 */
        .activity-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .activity-item {
            background: rgba(255, 255, 255, 0.9);
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            display: flex;
            align-items: center;
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
            text-decoration: none;
            color: #333;
        }

        .activity-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .activity-thumbnail {
            width: 150px;
            height: 100px;
            border-radius: 5px;
            margin-right: 20px;
            object-fit: cover;
        }

        .activity-info h3 {
            color: #1a5fb4;
            margin-bottom: 8px;
        }

        .activity-info p {
            margin-bottom: 5px;
            font-size: 14px;
        }

        /* 底部样式 */
        footer {
            background: rgba(44, 44, 44, 0.95);
            color: white;
            padding: 40px 0 20px;
            position: relative;
            z-index: 10;
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            margin-bottom: 30px;
        }

        .footer-section {
            flex: 1;
            padding: 0 20px;
        }

        .footer-section h3 {
            margin-bottom: 15px;
            color: #1c71d8;
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid #444;
            font-size: 14px;
        }
    </style>
</head>
<body>
    <!-- 头部：已替换为指定logo -->
    <header>
        <div class="container header-content">
            <div class="logo">
                <!-- 引入指定路径的湘信院logo -->
                <img src="湘信院logo.png" alt="湘信院logo">
                
            </div>
            <nav>
                <ul>
                    <li><a href="首页.html">首页</a></li>
                    <li><a href="校园风貌.html">校园风貌</a></li>
                    <li><a href="学校新闻.html">学校新闻</a></li>
                    <li><a href="校园活动.html">校园活动</a></li>
                    <li><a href="领导关怀.html">领导关怀</a></li>
                    <li><a href="音影资料.html">音影资料</a></li>
                    <button class="time-filter">活动时间筛选</button>
                </ul>
            </nav>&nbsp;&nbsp;&nbsp;&nbsp;
            <a href="登录.html">登录</a>
        </div>
    </header>

    <!-- 内容区 -->
    <div class="container main-content">
        <div class="activity-type-tabs">
            <div class="activity-type-tab active" data-type="all">全部</div>
            <div class="activity-type-tab" data-type="学术讲座">学术讲座</div>
            <div class="activity-type-tab" data-type="文体活动">文体活动</div>
            <div class="activity-type-tab" data-type="社团活动">社团活动</div>
        </div>

        <div class="activity-list">
            <a href="activity-detail.html" class="activity-item" data-type="学术讲座">
                <img src="https://via.placeholder.com/150x100?text=2025+校园运动会" alt="2025年校园运动会缩略图" class="activity-thumbnail">
                <div class="activity-info">
                    <h3>2025年校园运动会</h3>
                    <p><strong>时间：</strong>2025-10-15 至 2025-10-17</p>
                    <p><strong>地点：</strong>校园体育场</p>
                    <p><strong>简介：</strong>全校师生参与的综合性体育盛会，包含田径、球类等多个项目。</p>
                </div>
            </a>

            <a href="activity-detail.html" class="activity-item" data-type="文体活动">
                <img src="https://via.placeholder.com/150x100?text=社团文化节开幕" alt="社团文化节开幕缩略图" class="activity-thumbnail">
                <div class="activity-info">
                    <h3>社团文化节开幕</h3>
                    <p><strong>时间：</strong>2025-09-20 14:30</p>
                    <p><strong>地点：</strong>塘湾湖大剧院</p>
                    <p><strong>简介：</strong>各社团展示特色文化，开启丰富多彩的社团活动季。</p>
                </div>
            </a>

            <a href="activity-detail.html" class="activity-item" data-type="学术讲座">
                <img src="https://via.placeholder.com/150x100?text=人工智能学术讲座" alt="人工智能学术讲座缩略图" class="activity-thumbnail">
                <div class="activity-info">
                    <h3>人工智能前沿技术学术讲座</h3>
                    <p><strong>时间：</strong>2025-09-10 10:00</p>
                    <p><strong>地点：</strong>国际会议中心</p>
                    <p><strong>简介：</strong>邀请行业专家分享人工智能领域的最新研究成果与应用趋势。</p>
                </div>
            </a>

            <a href="activity-detail.html" class="activity-item" data-type="社团活动">
                <img src="https://via.placeholder.com/150x100?text=编程社团招新" alt="编程社团招新缩略图" class="activity-thumbnail">
                <div class="activity-info">
                    <h3>编程社团招新宣讲会</h3>
                    <p><strong>时间：</strong>2025-09-05 15:00</p>
                    <p><strong>地点：</strong>教学楼B栋201教室</p>
                    <p><strong>简介：</strong>编程社团介绍社团活动、招新要求，吸引对编程有兴趣的同学加入。</p>
                </div>
            </a>
        </div>
    </div>

    <!-- 底部 -->
    <footer>
        <div class="container">
            <div class="footer-content">
                <div class="footer-section">
                    <h3>校园地址</h3>
                    <p>国家级长沙经济技术开发区毛塘工业园湖南信息学院</p>
                </div>
                <div class="footer-section">
                    <h3>联系电话</h3>
                    <p>招生办: 0731-84098666 </p>
                    <p>行政办: (010) 8765-4321</p>
                </div>
                <div class="footer-section">
                    <h3>快速链接</h3>
                    <p>校园信息系统</p>
                    <p>图书馆资源</p>
                    <p>教务管理系统</p>
                </div>
            </div>
            <div class="copyright">
                <p>&copy; 2025 湖南信息学院 版权所有 | 许可证号：A10010065</p>
            </div>
        </div>
    </footer>

    <!-- 交互脚本 -->
    <script>
        // 活动类型筛选功能
        const typeTabs = document.querySelectorAll('.activity-type-tab');
        const activityItems = document.querySelectorAll('.activity-item');

        typeTabs.forEach(tab => {
            tab.addEventListener('click', () => {
                typeTabs.forEach(t => t.classList.remove('active'));
                tab.classList.add('active');
                const type = tab.getAttribute('data-type');
                
                activityItems.forEach(item => {
                    item.style.display = (type === 'all' || item.getAttribute('data-type') === type) ? 'flex' : 'none';
                });
            });
        });

        // 时间筛选按钮演示
        const timeFilterBtn = document.querySelector('.time-filter');
        timeFilterBtn.addEventListener('click', () => {
            alert('可在此扩展时间筛选功能（如日期选择器、按周/月筛选等）');
        });
    </script>
</body>
</html>